<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<title>Import Data</title>
<g:javascript library="prototype" />
</head>
<body>
	<div class="body">
		<h1>
			Manage gene data
			<%--<g:message code="experiment.experimentTitle.label"
				default="$researcherNames" />
		--%>
		</h1>
		<g:form controller="data" action="importdata">
		Add genes from data file:	
		<g:textField name="dataFile" value="${params.dataFile}" />
			<p>
				with researcher name:
				<%--<g:select name="researcher" from="${experimentInstance.constraints.researcher.inList}" value="${experimentInstance?.researcher}" valueMessagePrefix="experiment.researcher"  />	--%>
				<g:select name="researcher"
					from="${['Denis', 'Sara', 'Bruno', 'test', 'Test']}" />
<%--TODO DRY ** find a way to reference this list from	Experiment.RESEARCH_TEAM--%>
				<g:submitButton name="Add Data" />
		</g:form>
		<br />
		${status}
		<br />

		<g:link controller="data" action="list">
			<br />
			<br />
			<i>List all genes</i>
		</g:link>
		<g:link controller="data" action="siteHome">
			<br />
			<br />
			<i>Click for home page</i>
		</g:link>
	</div>
</body>
</html>